package org.HisCanvas.ChrisRiffle.JFlightLog.persist;

import org.HisCanvas.ChrisRiffle.JFlightLog.dataModel.LogBook;
import org.HisCanvas.ChrisRiffle.JFlightLog.dataModel.LogBookRec;




/**
 * LogBook Data Access Object(DAO) interface that all
 * LogBook DAO's should implement
 * 
 * @author RIF
 */
public interface LogBookDAO {

	/**
	 * Should perform all initialization such that the DAO will 
	 * be ready to handle requests
	 * 
	 * @throws Exception
	 */
	public abstract void init() throws Exception;
			
	public abstract LogBook getLogBook() throws Exception;
	
	public abstract LogBookRec getLogBookRec(int pPkId) throws Exception;
	
	public abstract void addLogBookRec(LogBookRec pLogBookRec) throws Exception;
	
	public abstract void modifyLogBookRec(LogBookRec pLogBookRec) throws Exception;
	
	public abstract void removeLogBookRec(LogBookRec pLogBookRec) throws Exception;
	
	
	/**
	 * Should close the DAO
	 * 
	 * @throws Exception
	 */
	public abstract void close() throws Exception;
	
	
}
